﻿
package extremefx.drawing {
	import flash.geom.Rectangle;	
	import flash.display.BitmapData;
	import flash.display.DisplayObject;		
		
	/**
	 * @author Marcelo Volmaro
	 */
	public var screenShoot:Function = function(pDo:DisplayObject):BitmapData {
		var bounds:Rectangle = pDo.getBounds(pDo);
		var bitmap:BitmapData = new BitmapData(int(bounds.width + 0.5), int(bounds.height + 0.5), true, 0);
		bitmap.draw(pDo);
		return bitmap;
	};
}
